-- This gets the script of the most recently added button
get the script of button the number of buttons
put it into theScript
put 1 into theLine
repeat until theLine > the number of lines in theScript
if line theLine of theScript contains "go" then
visual iris open slow
push this card
go to card id 3165 of stack "F/X"
exit mouseUp
end if
add 1 to theLine
end repeat
-- if we got this far, the button has no destination
if theLine > the number of lines in theScript then
answer "Set a destination first, please!"
end if
end mouseUp
-- part contents for background part 5
----- text -----
2
-- part contents for background part 2
----- text -----
How To Use Button F/X
-- part contents for background part 1
----- text -----
2. Create a new button, set its destination, then press the "Button F/X" button. Choose an effect, a direction (if needed) and a speed by clicking the appropriate radio buttons. Then click OK. Button F/X will then modify the script of the LAST BUTTON ADDED. Repeat this step for each additional button you create on the card.